- content_for(:title) do 
  | #{@project.name}
.project-show.top-blank
  = render 'head'
  = render 'star'
  = render partial: 'show_tab', locals: { type: 'invest' }
  
  .row
    .small-12.columns
      .invest-content ng-controller='MoneyRequireController' ng-init='init(#{@project.id}, {init_history: false})'
        moneyrequire require='opened' ng-show='opened' title='"当前轮次"'
        investbutton require='opened'
      .syndicate-info.ng-cloak ng-show='money_require_id' ng-controller='SyndicateInfoController' ng-init='init(#{@money_require.try(:id)})'
        h4.title 领投人信息
        .row.invest-leader ng-show='leader'
          .small-4.large-3.columns
            img ng-src='{{ leader.avatar }}'
          .small-8.large-9.columns
            .name 
              a ng-href='/users/{{ leader.id }}' 
                | {{ leader.name }}( 领投人 )
            .description
              | {{ leader.description }}
        h4.title 领投人的话
        .row.invest-word
          .small-12.columns
            p
              | {{ leader.leader_word }}
        h4.title 已跟投
        ul.small-block-grid-1.large-block-grid-2.investments
          li ng-repeat="investment in investments"
            .row.invest-leader
              .small-4.medium-3.columns
                img ng-src='{{ investment.user.avatar }}'
              .small-8.medium-9.columns
                .name 
                  a ng-href="/users/{{ investment.user.id }}"
                    | {{ investment.user.name }}
                .money
                  | {{ investment.money | nfcurrency }}
                .time
                  | 投资于 
                  | {{ investment.created_at }}
                .description
                  | {{ investment.user.description }}
      .invest-content ng-controller="MoneyRequireController" ng-init="init(#{@project.id}, {init_opened: false})"
        .history ng-repeat='history in histories'
          moneyrequire require='history' title='"历史投资"'
      h4.title 已关注
      .row
        .small-12.columns
          - if @star_users.blank?
            p.no-content 暂无人关注
          - else
            ul.small-block-grid-1.medium-block-grid-2
              - @star_users.each do |user|
                li
                  .row.invest-leader
                    .small-4.large-3.columns
                      = image_tag user.avatar_url
                    .small-8.large-9.columns
                      .name 
                        = link_to user.name, user
                      .description =user.description
